﻿// ==UserScript==
// @name         本地获取链接后跳转
// @namespace 	 test
// @version      1.0.0
// @description  添加购买链接
// @author       Zoro.Zhu
// @include      http://127.0.0.1/vs/?c=ctrl_wish_product&a=getManuUrl*
// @exclude      *://*.eggvod.cn/*
// @connect      *
// @require      https://code.jquery.com/jquery-2.1.4.min.js
// @require      http://127.0.0.1/vs/include/of/att/link/jquery.js
// @grant        window.close
// ==/UserScript==

(function() {
    var url = $('#url').text();
    var oldUrl = $('#oldUrl').text();
    if(url && oldUrl){
        window.open(oldUrl + '&purchaseUrl=' + encodeURI(url));
    }

    setTimeout(function(){
        window.close();
    },1000);
})();
